import { createI18n } from 'vue-i18n'
import en from './package/en.json'
import zhCn from './package/zh-cn.json'

const i18n = createI18n({
  locale: 'zh-cn',
  legacy: false,
  globalInjection: true,
  allowComposition: true,
  messages: {
    en,
    'zh-cn': zhCn
  }
})

export default i18n